package com.qidian.buy.controller;

import com.qidian.buy.entity.Address;
import com.qidian.buy.service.IAddressService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author 郭浩
 */
@RestController
@RequestMapping("/address")
public class AddressController {
    @Resource
    private IAddressService addressService;

    @RequestMapping("/list")
    public List<Address> queryAll(){
        return addressService.list();
    }
}
